package engine.loader.texture;

import org.lwjgl.opengl.GL11;

public class Texture_Deprecated {
	private int minFilter;
	private int magFilter;
	private boolean mipmapped;
	
	private int target;
	private int textureID;
	
	public Texture_Deprecated(int target, int textureID, int minFilter, int magFilter, boolean mipmapped) {
		this.target = target;
		this.textureID = textureID;
		this.minFilter = minFilter;
		this.magFilter = magFilter;
		this.mipmapped = mipmapped;
	}
	
	public void bind() {
		GL11.glEnable(target);
		GL11.glBindTexture(target, textureID);
	}
	
	public int getID() {
		return textureID;
	}
	
	public int getMinFilter() {
		return minFilter;
	}
	
	public int getMagFilter() {
		return magFilter;
	}
	
	public boolean isMipMapped() {
		return mipmapped;
	}
	
	public void dealloc() {
		GL11.glDeleteTextures(textureID);
	}
}
